package messaage;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class ErrorMsg extends Message {

	protected String body;

	public ErrorMsg(String _body) {
		this.body = _body;
		this.type = "ErrorMsg";
	}

	@Override
	public String toString() {
		XStream xstream = new XStream(new DomDriver());
		String xml = xstream.toXML(this)+"\0";
		
		return xml;
	}
	
	public String getBody(){
		return this.body;
	}

}
